package com.example.front.rank;


import com.forum.service.rank.entity.vo.response.RankItemVO;
import com.forum.service.rank.service.UserActivityRankService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author lbwxxc
 * @date 2025/4/11 12:26
 * @description: 用户活跃度
 */
@RestController
@RequestMapping("/api")
public class RankController {
    @Resource
    UserActivityRankService userActivityRankService;

    @PostMapping("/rank")
    public List<RankItemVO> rank() {
        return userActivityRankService.queryRankList();
    }
}
